/**
 * 
 */
package com.sx.core;

/**
 * @author FanGang
 * 
 */
public class SpObserver {
	private static ThreadLocal local = new ThreadLocal();
	private static ThreadLocal<String> localName = new ThreadLocal<String>();
	private static ThreadLocal<String> localPass = new ThreadLocal<String>();
	private static ThreadLocal<String> localUrl = new ThreadLocal<String>();
	public static void putUrl(String sp) {
		localUrl.set(sp);
	}
	public static String getUrl() {
		return (String) localUrl.get();
	}
	
	public static void putName(String sp) {
		localName.set(sp);
	}

	public static String getName() {
		return (String) localName.get();
	}

	public static void putPass(String sp) {
		localPass.set(sp);
	}

	public static String getPass() {
		return (String) localPass.get();
	}
}